/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.comun;

import edu.uoc.tdp.pac4.beans.Mecanic;
import edu.uoc.tdp.pac4.beans.Peca;
import edu.uoc.tdp.pac4.beans.Reparacio;
import edu.uoc.tdp.pac4.beans.ReparacioMecanic;
import edu.uoc.tdp.pac4.beans.Solicitud;
import edu.uoc.tdp.pac4.beans.SolicitudDetall;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author hphis
 */
public interface GestorReparacionesInterface  extends Remote{
     public ReparacioMecanic getDetallReparacio(int id) throws PAC4Exception,RemoteException, SQLException;
     public ArrayList<Mecanic> getMecanics() throws PAC4Exception,RemoteException, SQLException;
     public ArrayList<ReparacioMecanic> getReparacions() throws PAC4Exception,RemoteException, SQLException;
     public ArrayList<ReparacioMecanic> getReparacionsByMecanic(int idMec) throws PAC4Exception,RemoteException, SQLException;
     public ArrayList<SolicitudDetall> getSolicituds() throws PAC4Exception,RemoteException, SQLException;
     public int insertReparacionSolicitud(int IdSolicitud, int IdCapTaller, int Accion) throws PAC4Exception,RemoteException, SQLException;
     public int UpdateMecanicoReparacion(Reparacio rep) throws PAC4Exception,RemoteException, SQLException;
     public int UpdateObservacionReparacion(Reparacio rep) throws PAC4Exception,RemoteException, SQLException;
     public int UpdateHorasReparacion(Reparacio rep) throws PAC4Exception,RemoteException, SQLException;
     public int FinalizarReparacion(Reparacio rep) throws PAC4Exception,RemoteException, SQLException;
     public ArrayList<Peca> GetComandaPeces(Reparacio rep) throws PAC4Exception,RemoteException, SQLException;
     public int AddPecaComanda(Reparacio rep,Peca peca) throws PAC4Exception,RemoteException, SQLException;
     public int DelPecaComanda(Reparacio rep,Peca peca) throws PAC4Exception,RemoteException, SQLException;
     public ArrayList<Peca> getPeces() throws PAC4Exception,RemoteException, SQLException;
     
     
}
